<template>
  <div class="search col">
    <!-- <div class="title">{{query.name}}手机</div> -->
    <img src="" class="title_img" />
    <div style="padding:0 .12rem">
      <WaterFall :list="list" />
    </div>
    

    <div class="lines"></div>
    <van-loading class="loading" />
  </div>
</template>

<script>
import WaterFall from "@/components/Public/WaterFall";
import { mixins } from "@/utils/mixins";
export default {
  mixins: [mixins],
  components: {
    WaterFall
  },
  data() {
    return {
      searching: true,
      swipers: [
        { url: require("@/assets/swiper/1.jpg") },
        { url: require("@/assets/swiper/2.jpg") },
        { url: require("@/assets/swiper/3.jpg") }
      ],
      list: []
    };
  },
  methods: {
    onCancel() {
      this.searching = true;
    },
    onSearch() {},
    async getPage() {
      const res = await this.$api.goodsApi.getGoods({
        class_id: this.query.id
      });
      this.list = res.data.data.rows;
    }
  },
  mounted() {
    this.getPage();
  }
};
</script>

<style lang="less" scoped>
.title_img{
  width: 100%;
  height: 3.2rem;
  background-color: #f5f5f5;
}
.type {
  margin-top: 0.2rem;
  margin-left: 0.2rem;
}
.sku {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100%);
  display: flex;
  flex-direction: column;
  .mask {
    background: rgba(0, 0, 0, 0.5);
    height: 3rem;
    width: 100%;
  }
}
.bottom {
  padding: 0.2rem;
  background-color: #333;
  color: #fff;
  text-align: center;
}
.desc {
  font-size: 0.24rem;
  color: #999;
  margin-top: 0.1rem;
}
.sku_box {
  flex: 1;
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  .good_info {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    .good_img {
      width: 1.6rem;
      height: 1.6rem;
      background-color: #ccc;
    }
    .right_info {
      margin-left: 0.2rem;
      padding-top: 0.1rem;
      height: 1.6rem;
      display: flex;
      flex-direction: column;
    }
  }
}
.search {
  padding-bottom: 1rem;
}
.title {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 0.16rem;
  padding-left: 0.2rem;
  box-sizing: border-box;
  .line {
    width: 4px;
    height: 0.32rem;
    background-color: #3963bc;
    margin-left: 0.2rem;
  }
  .title_desc {
    font-size: 0.3rem;
    margin: 0 0.2rem;
  }
}
.good_desc {
  border: 1px dashed #3963bc;
  width: 7.1rem;
  margin: 0.2rem auto;
  padding: 0.2rem;
  display: flex;
  flex-direction: column;

  .intro {
    font-size: 0.26rem;
    color: #333;
    margin-bottom: 0.2rem;
  }
}
.cell {
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-bottom: 1px solid #eee;
  font-size: 0.26rem;
  color: #999;
}
.right {
  width: 0.46rem;
  height: 0.46rem;
  margin-left: auto;
}
.lines {
  width: 100%;
  height: 1px;
  background-color: #f5f5f5;
}
.desc {
  font-size: 0.28rem;
  color: #999;
}
.tags {
  display: flex;
  margin-top: 0.2rem;
  padding-left: 0.2rem;
}
.tag {
  padding: 2px 6px;
  background-color: #d8e1f5;
  font-size: 0.28rem;
  margin-right: 0.2rem;
  color: #666;
}
.swiper {
  // height: 3rem;
  .img {
    width: 100%;
  }
}
.prise {
  margin-bottom: 0.2rem;
}
</style>